package jwdt.common.interceptor;

import jwdt.xadmin.system.bean.TUser;

import com.ezerg.db.Jdb;
import com.ezerg.web.Form;
import com.ezerg.web.Interceptor;
import com.ezerg.web.Module;

public class SessionInterceptor implements Interceptor {

	@Override
	public Object intercept(Form f, Module m) throws Exception {
		// 在线用户信息
		TUser userInfo = (TUser)Jdb.get().get(TUser.class, "1");
		//userInfo.setAuthority(Jdb.get().querySingle("SELECT cddm FROM jwdt_qx_jscd WHERE jsdm=?", new Object[]{userInfo.getOskey()}, true));
		f.setSession("userInfo", userInfo);
		return null;
	}

}
